/* ============================================
   滚动公告栏样式 — 上下轮播
   ============================================ */

.announcement-bar {
    background: #f4f4f4;
    color: #333;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 52px;
    position: relative;
    border-bottom: 3px solid var(--primary);
}

.announcement-hidden {
    display: none !important;
}

/* 左侧标签区 */
.announcement-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    font-weight: 800;
    font-size: 14px;
    background: var(--primary);
    color: #fff;
    height: 100%;
    white-space: nowrap;
    z-index: 2;
    letter-spacing: 0.1em;
}

.announcement-label i {
    font-size: 14px;
}

/* 内容区 */
.announcement-content {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
    padding: 0 20px;
}

.announcement-viewport {
    position: relative;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 单条公告项 */
.announcement-item {
    display: flex;
    align-items: center;
    height: 52px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    box-sizing: border-box;
    padding-right: 20px;
}

.announcement-item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 0;
    background: var(--primary);
    margin-right: 12px;
    flex-shrink: 0;
}

.announcement-item:hover {
    color: var(--primary);
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 575.98px) {
    .announcement-bar {
        height: 44px;
    }

    .announcement-label {
        padding: 0 12px;
        font-size: 12px;
        gap: 5px;
    }

    .announcement-label span {
        display: none;
    }

    .announcement-item {
        height: 44px;
        font-size: 13px;
    }
}
